projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fed43f
)
* doc.c (get_doc_string): Omit (unsigned)c that mishandled negatives.
author
Paul Eggert
<eggert@cs.ucla.edu>
Mon, 13 Jun 2011 02:09:34 +0000
(19:09 -0700)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Mon, 13 Jun 2011 02:09:34 +0000
(19:09 -0700)
src/ChangeLog
patch
|
blob
|
history
src/doc.c
patch
|
blob
|
history
diff --git
a/src/ChangeLog
b/src/ChangeLog
index 9b0ff3e7339f46e82fb632ed703a1d4619624105..9196367d195003edef7df4dfe6a6c779de6210d3 100644
(file)
--- a/
src/ChangeLog
+++ b/
src/ChangeLog
@@
-1,5
+1,7
@@
2011-06-13 Paul Eggert <eggert@cs.ucla.edu>
+ * doc.c (get_doc_string): Omit (unsigned)c that mishandled negatives.
+
* data.c (Faset): If ARRAY is a string, check that NEWELT is a char.
Without this fix, on a 64-bit host (aset S 0 4294967386) would
incorrectly succeed when S was a string, because 4294967386 was
diff --git
a/src/doc.c
b/src/doc.c
index 89a7d322966079fe0029b55e4399d88f7d89b29a..48e0936510b6eb7d77a18f4bb69d3afac20ec18d 100644
(file)
--- a/
src/doc.c
+++ b/
src/doc.c
@@
-253,9
+253,12
@@
get_doc_string (Lisp_Object filepos, int unibyte, int definition)
else if (c == '_')
*to++ = 037;
else
- error ("\
+ {
+ unsigned char uc = c;
+ error ("\
Invalid data in documentation file -- %c followed by code %03o",
- 1, (unsigned)c);
+ 1, uc);
+ }
}
else
*to++ = *from++;